using System;

namespace Wrox.ProCSharp.Delegates
{
    public class Consumer(string name)
    {
        private readonly string _name = name;


        public void NewCarIsHere(object? sender, CarInfoEventArgs e)
        {
            Console.WriteLine($"{_name}: car {e.Car} is new");
        }
    }
}